package models

type Dept struct {
	Id        int    `xorm:"not null pk autoincr INT"`
	Title     string `xorm:"not null default '' comment('部门名称') VARCHAR(100)"`
	Level     int    `xorm:"not null default 1 comment('层级') TINYINT"`
	Tier      string `xorm:"not null default '' comment('层级id串') index(tier) VARCHAR(30)"`
	Pid       int    `xorm:"not null default 0 comment('父级ID') index(tier) INT"`
	CreatedAt string `xorm:"created"`
	UpdatedAt string `xorm:"updated"`
	DeletedAt string `xorm:"deleted"`
}
